﻿using UnityEngine;
using System.Collections;

public class ToggleSetHandler : MonoBehaviour {

	public ToggleChangeHandler[] toggleChanges;
	
	public void OnToggleActive(ToggleChangeHandler activeToggle)
	{
		foreach(ToggleChangeHandler toggle in toggleChanges)
		{
			if(toggle != activeToggle)
			{
				toggle.prevValue = false;
				toggle.toggleObject.value = false;
			}
		}
	}
	
	
}
